package com.github.sworm.android.killer;

import android.app.Activity;
import android.content.Intent;

import com.googlecode.androidannotations.annotations.Click;
import com.googlecode.androidannotations.annotations.EActivity;
import com.googlecode.androidannotations.annotations.OptionsItem;
import com.googlecode.androidannotations.annotations.OptionsMenu;

@EActivity(R.layout.main)
@OptionsMenu(R.menu.menu)
public class AlienKillerActivity extends Activity {

	/**
	 * Finish
	 * 
	 * @since Mar 5, 2012 at 12:08:30 AM
	 */
	@Click
	void buttonFinish() {
		finish();
	}

	/**
	 * openPlayGameActivity
	 * 
	 * @since Mar 5, 2012 at 12:08:24 AM
	 */
	@Click
	void buttonPlay() {
		Intent i = new Intent(this, GameActivity_.class);
		startActivity(i);
	}

	/**
	 * Open the activity About. openAboutActivity
	 * 
	 * @since Mar 5, 2012 at 12:08:06 AM
	 */
	@Click
	@OptionsItem(R.id.about)
	void buttonAbout() {
		Intent i = new Intent(this, AboutActivity_.class);
		startActivity(i);
	}

	@Click
	@OptionsItem(R.id.config)
	void buttonConfig() {
		Intent i = new Intent(this, PreferencesActivity_.class);
		startActivity(i);
	}
}